#pragma once

#include "AudioEngine/PlaySession.h"
#include <map>
#include <ClanLib/display.h>

class App
{
	bool quit;

	void on_input_up(const CL_InputEvent &key, const CL_InputState &state);
	void on_input_down(const CL_InputEvent &key, const CL_InputState &state);
	void on_window_close();
	void on_session_finished(int keyID);

	std::map<int, sp<AudioEngine::PlaySession> > playSessions;
	CL_SlotContainer slotContainer;

public:
	void start(const std::vector<CL_String> &args);
};
